home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 4 / ETO Development Tools 4.iso / Tools - Objects / MacApp / MacApp 3.0a2 / CPlusIncludes / StdDef.h < prev    next >
Text File  |  1991-05-01  |  408b  |  29 lines

  1. /*
  2.     StdDef.h -- Common definitions
  3.     
  4.     Copyright Apple Computer,Inc.    1987-1990
  5.     All rights reserved.
  6.  
  7. */
  8.  
  9. #ifndef __STDDEF__
  10. #define __STDDEF__
  11.  
  12. typedef int ptrdiff_t;
  13.  
  14. #ifndef __size_t__
  15. #define __size_t__
  16. typedef unsigned int size_t;
  17. #endif
  18.  
  19. #ifndef __wchar_t__
  20. #define __wchar_t__
  21. typedef short wchar_t;
  22. #endif
  23.  
  24. #define NULL 0
  25.  
  26. #define offsetof(structure,field) ((size_t)&((structure *) 0)->field)
  27.  
  28. #endif
  29.